import request from '@/utils/request'

// 获取用户列表数据
export const getTableDataApi = (params) => {
    return request({
        url: "/ydd_user/list",
        method: "get",
        params
    })
}

// 删除用户
export const delUserApi = (id) => {
    return request({
        url: "/ydd_user/del?id=" + id,
        method: 'get'
    })
}

// 添加用户
export const addUserInfoApi = (data) => {
    return request({
        url: "/ydd_user/add",
        method: 'post',
        data
    })
}

// 回显用户信息
export const getUserInfoApi = (id) => {
    return request({
        url: "/ydd_user/rowInfo?id=" + id,
        method: "get"
    })
}

// 修改用户信息
export const editUserInfoApi = (data) => {
    return request({
        url: "/ydd_user/update",
        method: "post",
        data
    })
}
